import axios from '@/request'

export function getNoticeListApi(page) {
  return axios.get(`/admin/notice/${page}`)
}

export function createNoticeApi(data) {
  return axios.post('/admin/notice', data)
}

export function updateNoticeApi(id, data) {
  return axios.post(`/admin/notice/${id}`, data)
}

export function deleteNoticeApi(id) {
  return axios.post(`/admin/notice/${id}/delete`)
}
